<!--
 * 档案案卷 表单组件
 * :
 * @version: 1.0
 * @author: lakeside hubin_yuan.410@hotmail.com
 * @date: 20120-07-14
 * @LastEditors:
 * @LastEditTime:
 -->
<template>
  <el-form ref="archiveForm" :disabled="!form.editable" :model="form.entry" :rules="form.editable?rules:{}"
           label-position="right"
           label-width="6rem">
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="聚合层次" prop="aggregateLevel">
          <el-input v-model="form.entry.aggregateLevel" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="档案档号" prop="archivalCode">
          <el-input v-model="form.entry.archivalCode" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="档案分类" prop="archiveClassify">
          <el-input v-model="form.entry.archiveClassify" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="归档人" prop="archivedBy">
          <el-input v-model="form.entry.archivedBy" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="目录序号" prop="catalogSeqNo">
          <el-input v-model="form.entry.catalogSeqNo" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="门类主键" prop="categoryId">
          <el-input v-model="form.entry.categoryId" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="组合类型" prop="composeType">
          <el-input v-model="form.entry.composeType" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="版权信息" prop="copyright">
          <el-input v-model="form.entry.copyright" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="文件种类" prop="documentType">
          <el-input v-model="form.entry.documentType" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="紧急层度" prop="emergencyDegree">
          <el-input v-model="form.entry.emergencyDegree" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="备案年份" prop="filingYear">
          <el-input v-model="form.entry.filingYear" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="单位全宗号" prop="fondsCode">
          <el-input v-model="form.entry.fondsCode" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="全宗实体号" prop="fondsEntityCode">
          <el-input v-model="form.entry.fondsEntityCode" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="创作者" prop="formedAuthor">
          <el-input v-model="form.entry.formedAuthor" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="卷形成开始时间" prop="formedBeginDate">
          <el-input v-model="form.entry.formedBeginDate" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="卷形成结束时间" prop="formedEndDate">
          <el-input v-model="form.entry.formedEndDate" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="文件形成组织" prop="formedOrganize">
          <el-input v-model="form.entry.formedOrganize" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="文件形成时间" prop="formedDate">
          <el-input v-model="form.entry.formedDate" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="发文编号" prop="issuedNumber">
          <el-input v-model="form.entry.issuedNumber" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="题名" prop="mainTitle">
          <el-input v-model="form.entry.mainTitle" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="主题词" prop="mainWord">
          <el-input v-model="form.entry.mainWord" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="稿本" prop="manuscriptType">
          <el-input v-model="form.entry.manuscriptType" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="载体位置" prop="mediumLocation">
          <el-input v-model="form.entry.mediumLocation" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="载体编号" prop="mediumNumber">
          <el-input v-model="form.entry.mediumNumber" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="载体类型" prop="mediumType">
          <el-input v-model="form.entry.mediumType" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="页序号" prop="pageSeqNo">
          <el-input v-model="form.entry.pageSeqNo" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="文件页数" prop="pageSize">
          <el-input-number v-model="form.entry.pageSize" :controls="false" :disabled="!form.editable"
                           :readonly="!form.editable"></el-input-number>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="人物" prop="peoples">
          <el-input v-model="form.entry.peoples" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="件序号" prop="pieceSeqNo">
          <el-input v-model="form.entry.pieceSeqNo" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="文件件数" prop="pieceSize">
          <el-input-number v-model="form.entry.pieceSize" :controls="false" :disabled="!form.editable"
                           :readonly="!form.editable"></el-input-number>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="归档日期" prop="archivedDate">
          <el-input v-model="form.entry.archivedDate" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="地点" prop="place">
          <el-input v-model="form.entry.place" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="封存盒号" prop="sealBoxNumber">
          <el-input v-model="form.entry.sealBoxNumber" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="封存位置" prop="sealStorageLocation">
          <el-input v-model="form.entry.sealStorageLocation" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="保密等级" prop="secretLevel">
          <el-input v-model="form.entry.secretLevel" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="保管期限" prop="storagePeriod">
          <el-input v-model="form.entry.storagePeriod" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="主题" prop="subject">
          <el-input v-model="form.entry.subject" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="卷序号" prop="volumeSeqNo">
          <el-input v-model="form.entry.volumeSeqNo" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段01" prop="extField01">
          <el-input v-model="form.entry.extField01" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段02" prop="extField02">
          <el-input v-model="form.entry.extField02" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段03" prop="extField03">
          <el-input v-model="form.entry.extField03" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段04" prop="extField04">
          <el-input v-model="form.entry.extField04" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段05" prop="extField05">
          <el-input v-model="form.entry.extField05" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段06" prop="extField06">
          <el-input v-model="form.entry.extField06" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段07" prop="extField07">
          <el-input v-model="form.entry.extField07" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段08" prop="extField08">
          <el-input v-model="form.entry.extField08" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段09" prop="extField09">
          <el-input v-model="form.entry.extField09" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段10" prop="extField10">
          <el-input v-model="form.entry.extField10" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段11" prop="extField11">
          <el-input v-model="form.entry.extField11" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段12" prop="extField12">
          <el-input v-model="form.entry.extField12" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段13" prop="extField13">
          <el-input v-model="form.entry.extField13" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段14" prop="extField14">
          <el-input v-model="form.entry.extField14" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段15" prop="extField15">
          <el-input v-model="form.entry.extField15" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="扩展字段16" prop="extField16">
          <el-input v-model="form.entry.extField16" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="12" :md="24">
        <el-form-item label="上级卷宗主键" prop="parentDossierId">
          <el-input v-model="form.entry.parentDossierId" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row v-if="false">
      <el-col :lg="12" :md="24">
        <el-form-item label="创建者" prop="createdByName">
          <el-input v-model="form.entry.createdByName" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off" placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="创建时间" prop="createdDate">
          <el-date-picker v-model="form.entry.createdDate" :disabled="!form.editable" :readonly="!form.editable" align="l"
                          format="yyyy-MM-dd HH:mm:ss"
                          placeholder="" type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="最后修改者" prop="modifiedByName">
          <el-input v-model="form.entry.modifiedByName" :disabled="!form.editable" :readonly="!form.editable" autocomplete="off"
                    placeholder=""></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="最后修改时间" prop="modifiedDate">
          <el-date-picker v-model="form.entry.modifiedDate" :disabled="!form.editable" :readonly="!form.editable" align="l"
                          format="yyyy-MM-dd HH:mm:ss"
                          placeholder="" type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :lg="24" :md="24">
        <el-form-item label="备注描述" prop="remarkNote">
          <el-input v-model="form.entry.remarkNote" :autosize="{minRows: 2}" :disabled="!form.editable" :readonly="!form.editable"
                    autocomplete="off"
                    placeholder="" type="textarea">
          </el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="排序" prop="sortNum">
          <el-input-number v-model="form.entry.sortNum" :disabled="!form.editable" :readonly="!form.editable" autocomplete="off"
                           placeholder=""></el-input-number>
        </el-form-item>
      </el-col>
      <el-col :lg="12" :md="24">
        <el-form-item label="有效状态" prop="validStatus">
          <dict-option-select v-model="form.entry.validStatus" :dictField="this.$constants.coreDict.validStatus.key" :disabled="!form.editable"
                              :readonly="!form.editable"
                              autocomplete="off" placeholder=""></dict-option-select>
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>
</template>

<script>
import DictOptionSelect from "@/views/system/components/DictOptionSelect";

export default {
  name: "dossierArchiveForm",
  model: {
    prop: 'form',
  },
  props: {
    form: {type: Object},
  },
  components: {DictOptionSelect},
  data() {
    return {
      rules: {
        aggregateLevel: [
          {required: true, message: '聚合层次不能为空', trigger: ['blur', 'change']},
          {max: 20, message: '聚合层次最大长度为20', trigger: ['blur', 'change']},
        ],
        archivalCode: [
          {max: 100, message: '档案档号最大长度为100', trigger: ['blur', 'change']},
        ],
        archiveClassify: [
          {max: 20, message: '档案分类最大长度为20', trigger: ['blur', 'change']},
        ],
        archivedBy: [
          {max: 36, message: '归档人最大长度为36', trigger: ['blur', 'change']},
        ],
        catalogSeqNo: [
          {max: 20, message: '目录序号最大长度为20', trigger: ['blur', 'change']},
        ],
        categoryId: [
          {required: true, message: '门类主键不能为空', trigger: ['blur', 'change']},
          {max: 20, message: '门类主键最大长度为20', trigger: ['blur', 'change']},
        ],
        composeType: [
          {max: 20, message: '组合类型最大长度为20', trigger: ['blur', 'change']},
        ],
        copyright: [
          {max: 500, message: '版权信息最大长度为500', trigger: ['blur', 'change']},
        ],
        documentType: [
          {max: 20, message: '文件种类最大长度为20', trigger: ['blur', 'change']},
        ],
        emergencyDegree: [
          {max: 20, message: '紧急层度最大长度为20', trigger: ['blur', 'change']},
        ],
        filingYear: [
          {max: 4, message: '备案年份最大长度为4', trigger: ['blur', 'change']},
        ],
        fondsCode: [
          {max: 20, message: '单位全宗号最大长度为20', trigger: ['blur', 'change']},
        ],
        fondsEntityCode: [
          {max: 20, message: '全宗实体号最大长度为20', trigger: ['blur', 'change']},
        ],
        formedAuthor: [
          {max: 36, message: '创作者最大长度为36', trigger: ['blur', 'change']},
        ],
        formedBeginDate: [
          {max: 23, message: '卷形成开始时间最大长度为23', trigger: ['blur', 'change']},
        ],
        formedEndDate: [
          {max: 23, message: '卷形成结束时间最大长度为23', trigger: ['blur', 'change']},
        ],
        formedOrganize: [
          {max: 100, message: '文件形成组织最大长度为100', trigger: ['blur', 'change']},
        ],
        formedDate: [
          {max: 23, message: '文件形成时间最大长度为23', trigger: ['blur', 'change']},
        ],
        issuedNumber: [
          {max: 50, message: '发文编号最大长度为50', trigger: ['blur', 'change']},
        ],
        mainTitle: [
          {max: 100, message: '题名最大长度为100', trigger: ['blur', 'change']},
        ],
        mainWord: [
          {max: 100, message: '主题词最大长度为100', trigger: ['blur', 'change']},
        ],
        manuscriptType: [
          {max: 20, message: '稿本最大长度为20', trigger: ['blur', 'change']},
        ],
        mediumLocation: [
          {max: 200, message: '载体位置最大长度为200', trigger: ['blur', 'change']},
        ],
        mediumNumber: [
          {max: 50, message: '载体编号最大长度为50', trigger: ['blur', 'change']},
        ],
        mediumType: [
          {max: 20, message: '载体类型最大长度为20', trigger: ['blur', 'change']},
        ],
        pageSeqNo: [
          {max: 20, message: '页序号最大长度为20', trigger: ['blur', 'change']},
        ],
        pageSize: [
          {type: 'integer', message: '文件页数必须为数字整数', trigger: ['blur', 'change']},
        ],
        peoples: [
          {max: 250, message: '人物最大长度为250', trigger: ['blur', 'change']},
        ],
        pieceSeqNo: [
          {max: 20, message: '件序号最大长度为20', trigger: ['blur', 'change']},
        ],
        pieceSize: [
          {type: 'integer', message: '文件件数必须为数字整数', trigger: ['blur', 'change']},
        ],
        archivedDate: [
          {max: 23, message: '归档日期最大长度为23', trigger: ['blur', 'change']},
        ],
        place: [
          {max: 250, message: '地点最大长度为250', trigger: ['blur', 'change']},
        ],
        sealBoxNumber: [
          {max: 20, message: '封存盒号最大长度为20', trigger: ['blur', 'change']},
        ],
        sealStorageLocation: [
          {max: 36, message: '封存位置最大长度为36', trigger: ['blur', 'change']},
        ],
        secretLevel: [
          {max: 20, message: '保密等级最大长度为20', trigger: ['blur', 'change']},
        ],
        storagePeriod: [
          {max: 20, message: '保管期限最大长度为20', trigger: ['blur', 'change']},
        ],
        subject: [
          {max: 500, message: '主题最大长度为500', trigger: ['blur', 'change']},
        ],
        volumeSeqNo: [
          {required: true, message: '卷序号不能为空', trigger: ['blur', 'change']},
          {max: 20, message: '卷序号最大长度为20', trigger: ['blur', 'change']},
        ],
        extField01: [
          {max: 255, message: '扩展字段01最大长度为255', trigger: ['blur', 'change']},
        ],
        extField02: [
          {max: 255, message: '扩展字段02最大长度为255', trigger: ['blur', 'change']},
        ],
        extField03: [
          {max: 255, message: '扩展字段03最大长度为255', trigger: ['blur', 'change']},
        ],
        extField04: [
          {max: 255, message: '扩展字段04最大长度为255', trigger: ['blur', 'change']},
        ],
        extField05: [
          {max: 255, message: '扩展字段05最大长度为255', trigger: ['blur', 'change']},
        ],
        extField06: [
          {max: 255, message: '扩展字段06最大长度为255', trigger: ['blur', 'change']},
        ],
        extField07: [
          {max: 255, message: '扩展字段07最大长度为255', trigger: ['blur', 'change']},
        ],
        extField08: [
          {max: 255, message: '扩展字段08最大长度为255', trigger: ['blur', 'change']},
        ],
        extField09: [
          {max: 255, message: '扩展字段09最大长度为255', trigger: ['blur', 'change']},
        ],
        extField10: [
          {max: 255, message: '扩展字段10最大长度为255', trigger: ['blur', 'change']},
        ],
        extField11: [
          {max: 255, message: '扩展字段11最大长度为255', trigger: ['blur', 'change']},
        ],
        extField12: [
          {max: 255, message: '扩展字段12最大长度为255', trigger: ['blur', 'change']},
        ],
        extField13: [
          {max: 255, message: '扩展字段13最大长度为255', trigger: ['blur', 'change']},
        ],
        extField14: [
          {max: 255, message: '扩展字段14最大长度为255', trigger: ['blur', 'change']},
        ],
        extField15: [
          {max: 255, message: '扩展字段15最大长度为255', trigger: ['blur', 'change']},
        ],
        extField16: [
          {max: 255, message: '扩展字段16最大长度为255', trigger: ['blur', 'change']},
        ],
        parentDossierId: [
          {max: 36, message: '上级卷宗主键最大长度为36', trigger: ['blur', 'change']},
        ],
      }
    }
  },
  methods: {
    /**表单校验回调*/
    async validate(callback) {
      return await this.$refs.archiveForm.validate(callback)
    },
  }
}
</script>

<style lang="scss" scoped>

</style>
